[SUBROUTINE]
version = 1.14
icon = od.png
name = _("Init Turning")
type = turning
help = _("<b>Initial turning to find X center</b>&#10;Position cutter where you want to begin")
order = act h1 x z hf fin

[PARAM_ACT]
name = _("Active")
icon = enable.png
type = bool
value = 1

[PARAM_H1]
name = _("End offsets")
type = sub-header

[PARAM_X]
name = _("X")
type = float
icon = x-end.png
value = -0.05
metric_value = -1.5
maximum_value = 0.0
header = h1

[PARAM_Z]
name = _("Z")
type = float
icon = z-end.png
value = -0.5
metric_value = -12.0
maximum_value = 0.0
not_allowed = 0
header = h1

[PARAM_HF]
name = _("Finishing")
type = sub-header

[PARAM_FIN]
name = _("Number of passes")
icon = finish.png
type = int
value = 1
minimum_value = 0
tool_tip = _("Or spring passes")
header = hf

[DEFINITIONS]
content =
;	<eval>self.include_once(/home/fernand/Dropbox/lathe-ncam/turning.ngc)</eval>

[CALL]
content =
	(begin #sub_name)
	(author : Fernand Veilleux)
	
	o<#self_id_act> if [#param_act]
		o<init_turning> CALL [#param_x] [#param_z] [#param_fin]
	o<#self_id_act> endif
	
	(end #sub_name)
